<script setup lang="ts">
import { ref, computed } from "vue";
const num = ref(0);

const double = computed<number>(() => {
  return num.value * 2;
});
const move = (e: MouseEvent) => {
  mouse.value.x = e.pageX
  mouse.value.y = e.pageY
};
</script>

<template>
  <div>{{ num }}---{{ double }}</div>
  <button @click="add">+1</button>
</template>

<style scoped></style>
